"""
Created on Oct 23, 2009

@author: aamn

it would be appropriate if an astronomical spectra actually had 
standardized FITS keywords. but I've found they do not. 
"""

model = "sdss"
description = "Vacuum, log stored linear dispersion 1D spectra from sdss"

#------------------------------ mapping 1D vector column to specific data types
vectors = {(0):4,
        'fluxvec':0,
        'wavevec':None,
        'skyvec':None,
        'maskvec':3,
        'normalizedflux':1,
        'rawfluxvec':None,
        'fluxerrorvec':2,
        'skeys':['ARRAY1', 'ARRAY2', 'ARRAY3', 'ARRAY4']
        }


#-------- parameters related to building the wavelength vector (if not in file)
parwave = {
           'cpx':1.0,
           'air':'vac',
           'store':'log10',
           'wtype':'linear',
           'units':'Angstroms',
           'badwave':[[6870., 6955.], [7680., 7730.]],
           'sax':['NAXIS1', 'COEFF0', 'CRPIX1']
           }


#----------------------------------------------- parameters for the flux vector
parflux = {
           'units':{(0):'1.0E-17 erg/cm/s/Ang', 'key':'BUNIT'},
           'badvalues':[],
          }


#----------- perhaps useful object parameters to try to extract from data file.
parobjs = {
          'okeys':['OBJID', 'OBJTYPE'],
          }

#-------------- misc data file parameters like which HDU to use and if the data
#-------------------------- have extraneous dimensions that need to be removed.
hdu = 0
squeeze = False
